[LINUX] Allows userspace tools on a domU to set up a watch on the xenstore.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 2 Aug 2006 14:01:59 +0000 (15:01 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 2 Aug 2006 14:01:59 +0000 (15:01 +0100)
commit8f84603260b78eec6ab65ae4be493083171bc276
tree2fdde0f4cfd30638c4a6d9acfa25e3a65dc3e4d0
parentae9516f06f34e61ce00e0fac5d5fc101ef6c1a57
[LINUX] Allows userspace tools on a domU to set up a watch on the xenstore.
It does this by intercepting XS_WATCH requests written
to /proc/xen/xenbus and then re-submitting the request to the
in-kernel xenstore interface, in
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_xs.c.  When a callback
occurs, an in-kernel function is invoked, which then reconstructs a
response in the format expected by userspace, and sends this response
through /proc/xen/xenbus.

It was necessary to add some supporting infrastructure to
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c, such as an
additional mutex to protect the response queue and a list of active
watches associated with each connection.

Signed-off-by: Michael LeMay <mdlemay@epoch.ncsc.mil>
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_dev.c